#ifndef DEEPINFOR_H
#define DEEPINFOR_H

#include <QObject>
#include <mutex>
#include <QQueue>
#include <QPair>
#include "mytypes.h"
class DeepInfor final:public QObject
{
    Q_OBJECT
public:
    static DeepInfor* GetInstance(QObject* parent=nullptr);
    virtual ~DeepInfor();

    void SubmitInfor(Yzty::ITEMCODE mcode,QVector<Yzty::BaceInfor*>& infors);

    const QVector<Yzty::BaceInfor*>& GetItemInfor(Yzty::ITEMCODE);

private:
    explicit DeepInfor(QObject* parent=nullptr);
    static DeepInfor* _instance;

private:
    QVector<QVector<Yzty::BaceInfor*>>                      _infors;
    std::mutex          _mutex;
};

#endif // DEEPINFOR_H
